package creditcard;

import creditcard.mvc.AddCCardAccountButton;
import creditcard.mvc.GenerateMonthlyBillButton;
import framework.mvc.AFincoView;

import javax.swing.*;

public class CCardView extends AFincoView {
    @Override
    public String getAppTitle() {
        return "Credit-card processing Application";
    }

    @Override
    protected String getCreditReifiedName() {
        return "Deposit";  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    protected String getDebtReifiedName() {
        return "Charge";  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public String[] getTableHeaders() {
        String[] headers = new String[5];
        headers[0] = "Name";
        headers[1] = "CC Number";
        headers[2] = "Exp Date";
        headers[3] = "Type";
        headers[4] = "Balance";
        return headers;
    }

    @Override
    protected void addButtons(Box box) {
        box.add(new AddCCardAccountButton(this).getButton());
        box.add(new GenerateMonthlyBillButton(this).getButton());
    }
}
